package com.richfit.cuba.modular.lsms.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * 
 * </p>
 *
 * @author Alan
 * @since 2018-11-14
 */
@TableName("safe_report_detail")
public class SafeReportDetail extends Model<SafeReportDetail> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("ID")
    private String id;
    @TableField("REPORT_ID")
    private String reportId;
    @TableField("SORT_NO")
    private int sortNo;
    @TableField("ITEM_TOTAL")
    private long itemTotal;
    @TableField("SUCCESS_TOTAL")
    private long successTotal;
    @TableField("FAIL_TOTAL")
    private long failTotal;
    @TableField("CREATE_DATE")
    private Date createDate;
    @TableField(exist = false)
    private List<SafeReportData> safeReportDataList;

    public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getReportId() {
		return reportId;
	}

	public void setReportId(String reportId) {
		this.reportId = reportId;
	}

	public int getSortNo() {
		return sortNo;
	}

	public void setSortNo(int sortNo) {
		this.sortNo = sortNo;
	}

	public long getItemTotal() {
		return itemTotal;
	}

	public void setItemTotal(long itemTotal) {
		this.itemTotal = itemTotal;
	}

	public long getSuccessTotal() {
		return successTotal;
	}

	public void setSuccessTotal(long successTotal) {
		this.successTotal = successTotal;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public List<SafeReportData> getSafeReportDataList() {
		return safeReportDataList;
	}

	public void setSafeReportDataList(List<SafeReportData> safeReportDataList) {
		this.safeReportDataList = safeReportDataList;
	}

	public long getFailTotal() {
		return failTotal;
	}

	public void setFailTotal(long failTotal) {
		this.failTotal = failTotal;
	}

	@Override
    protected Serializable pkVal() {
        return this.id;
    }

	@Override
	public String toString() {
		return "SafeReportDetail [id=" + id + ", reportId=" + reportId + ", sortNo=" + sortNo + ", itemTotal="
				+ itemTotal + ", successTotal=" + successTotal + ", failTotal=" + failTotal + ", createDate="
				+ createDate + "]";
	}

}
